home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-31 | 1.4 KB | 45 lines | [TEXT/RLAB] |
- readb:
-
- Syntax: readb ( "filename" )
- readb ( "filename" , L )
-
- Description:
-
- readb() reads the file identified by the "filename". The file
- is opened with read access, and all of the contents are read.
- The file identified by the 1st argument must contain data that
- is in RLaB binary format. The entities in the file are
- installed in the global symbol table, overwriting any existing
- entities. Upon completion the file is closed.
-
- Example:
-
- readb ("bunch_of_data_in_a_file");
-
- The second form of the read function allows the data in the
- file to be read into a list variable L. The
- global-symbol-table is untouched (except for L).
-
- Example:
-
- readb ("bunch_of_data", X);
-
- The contents of the file `bunch_of_data' are read and stored
- in the list variable X. Except for the creation/modification
- of the variable X, the global-symbol-table is unchanged.
-
- Readb will read numeric matrices written by MATLAB's save
- command. Readb will not read MATLAB text matrices, or sparse
- matrices, or matrices written with reduced precision (integer
- format). Furthermore readb will not read Cray, or VAX
- binaries. ReadB will read big and little endian binaries -
- this includes binaries written from PCs, DEC Risc, Macintosh,
- Sun, and Apollo.
-
- See Also: FILES, close, getline, read, readm, writeb, writem
-
- Future Enhancements:
-
- readb() should have the option to list the contents of a file
- without actually reading them into the symbol table.
-